<?php ?>
<div id="topNav">
<!-- left -->
	<div class="top-left-info">
		<div class="dropdown-menu">
		<ul>
			<li > <?php echo CHtml::link("TRANG CHỦ",array("site/index"));?></li>
			<!-- danh sách sản phẩm -->
			<li> <?php echo CHtml::link("DỊCH VỤ | GIÁ",array("nhomdichvu/dichvu"));?>
			</li>
		
			<li > <?php echo CHtml::link("LIÊN HỆ",array('/site/contact'));?></li>
			<?php if(!Yii::app()->user->isGuest){ ?>
			<li > <?php echo CHtml::link("LỊCH SỬ",array('/dichvu/history'));?></li>
			<li > <?php echo CHtml::link("NẠP CREDIT",array('/credit/napthecao'));?></li>
			
			<?php }?>
		</ul>
		</div>
	</div>
<!-- right -->
	<div class="top-right-info">
	<div class="dropdown-menu">
	<?php if(Yii::app()->user->isGuest){
	?>	
		<ul>
			<li > <?php echo CHtml::link("Đăng nhâp",array("site/login"));?></li>
			<li ><span> / </span></li>
			<li > <?php echo CHtml::link("Đăng ký",array("user/register"));?></li>
		</ul>
	<?php 
	}else{
	?>
	
		<ul>
	<?php 	if(UserUtils::isAdmin()){ ?>
		<li class='dropdown-menu-sub'> <?php echo CHtml::link("CÀI ĐẶT",array("khohang/index"));?>
				<ul>
					<li > <?php echo CHtml::link("Nhóm dịch vụ",array("nhomdichvu/index"));?></li>
					<li > <?php echo CHtml::link("Dịch vụ",array("dichvu/index"));?></li>
					<li > <?php echo CHtml::link("Credit",array("credit/admin"));?></li>
					<li > <?php echo CHtml::link("Order",array("dichvu/orderadmin"));?></li>
				</ul>
			</li>
			<li ><span> | </span></li>
			<?php }?>
			<li  >
			<?php echo CHtml::link( "Xin chào ". UserUtils::getLoginDisplayUserName(),array("user/changepass"));?>
			
			</li>
			<li ><span> | </span></li>
			<li ><?php echo CHtml::link( "Đăng xuất",array("user/logout"));?></li>
		</ul>
	<?php 
	}?>
	</div>
	</div>
</div>

<div class="back-navabar"></div>